package com.tengju.user.domain.model.club;

import com.tengju.user.domain.shared.BasePage;

import java.util.List;

/**
 * @author chenhang
 * @Date 2021/1/13
 */
public interface ClubRepository {

    Club findById(ClubId clubId);

    List<Club> findByIds(List<ClubId> clubIds);

    void update(Club club);

    Club findByName(String clubName);

    ClubId save(Club club);

    BasePage<Club> query(Long clubId, String clubName, Long founderIdCode, Integer offset, Integer pageSize);

    List<Club> queryAll();

}
